import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:getx_mvvm_lite/app/bindings/initial_binding.dart';
import 'package:getx_mvvm_lite/app/config/theme_config.dart';
import 'package:getx_mvvm_lite/app/routes/app_pages.dart';
import 'package:getx_mvvm_lite/app/routes/app_routes.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    final themeConfig = Get.find<ThemeConfig>();

    return GetMaterialApp(
      title: 'GetX MVVM Lite',
      debugShowCheckedModeBanner: false,
      theme: themeConfig.light,
      initialBinding: InitialBinding(),
      initialRoute: Routes.counter,
      getPages: AppPages.pages,
    );
  }
}